package org.apache.ibatis.test;


import java.io.Serializable;

public class User implements Serializable {
    private String id;
    private String name;
    private String pwd;


    //get set方法略
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getPwd() {
        return pwd;
    }

    @Override
    public String toString() {
        return "User{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", pwd='" + pwd + '\'' +
                '}';
    }

//    public static void main(String[] args) throws Exception {
//        User user = new User("");
//        Method method = user.getClass().getMethod("toString");
//        System.out.println("method = " + method.getDeclaringClass());
//        System.out.println("Object.class = " + Object.class);
//        System.out.println(Object.class.equals(method.getDeclaringClass()));
//    }
}